#!/bin/bash
#created by douyu
#for monitoring ipaddress alived?
ip=`hostname -i`
mail=0000@163.com

while :;
do
  if ! `ping -c 2 $ip 2&>/dev/null`
  then
      python /root/SHELL100/mail.py $mail  "mail title" "mail content"
  fi
  sleep 30
done
